package com.sysu.minsysu.zdkb;

import java.util.ArrayList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.sysu.minsysu.zdkb.utils.Course;
import com.sysu.minsysu.zdkb.utils.CourseUtils;

public class MyCourseActivity extends Activity{

	ArrayList<Course> mCourses;
	
	@Override
	public void onCreate( Bundle savedInstanceState ){
		super.onCreate(savedInstanceState);
		
		Intent intent = getIntent();
		mCourses = (ArrayList<Course>)intent.getSerializableExtra("courses");
		if( mCourses == null )
			mCourses = CourseUtils.getSelectCourses(this, null);
		
		setContentView( new MyAllCourseView(this, mCourses));
	}
}
